package cn.tom.org.service;

import cn.tom.org.pojo.domain.Department;
import cn.tom.org.pojo.query.DepartmentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface DepartmentService {

    Department getOne(Long id);

    List<Department> getAll();

    void add(Department department);

    void update(Department department);

    PageInfo<Department> queryPage(DepartmentQuery query);

    List<Department> deptTree();

    void delete(Long id);

    void patchDelete(List<Long> ids);
}
